
#include <iostream>

using namespace std;

void Max( int x, int y ) {
	cout << "1 : Max( int , int )" << endl;
}

template<typename T> void Max( T x, T y ) {
	cout << "2 : Max< T, T >()" << endl;
}

int main( ) {
	int nx = 10, ny = 20;
	Max( nx, ny );	// Commonplace function first.
	Max<>( nx, ny );// template.
	double dx = 1.23, dy = 4.56;
	Max( dx, dy );	// template.

	Max( nx, dy );	// Commonplace function.

	return 0;
}
